Fix intermittent build-cuda-devcontainer failure caused by NVIDIA CUDA apt repo instability#408
Draft
Copilot wants to merge 2 commits into
Draft
Fix intermittent build-cuda-devcontainer failure caused by NVIDIA CUDA apt repo instability#408Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
…erfile The devcontainer build fails intermittently because the nvidia/cuda base image adds a NVIDIA CUDA apt repository, and when the common-utils devcontainer feature runs apt-get update, it hits the NVIDIA CUDA repo which can experience temporary mirror sync issues (e.g., "File has unexpected size... Mirror sync in progress?"). Since CUDA is already provided by the base image and no additional CUDA packages are installed via apt in the Dockerfile, removing the NVIDIA CUDA apt sources prevents these intermittent failures without any loss of functionality. Fixes job: https://github.com/psc-code/psc/actions/runs/26962348562/job/79555760599
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job build-cuda-devcontainer
Fix intermittent build-cuda-devcontainer failure caused by NVIDIA CUDA apt repo instability
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
build-cuda-devcontainerCI job fails intermittently because thenvidia/cudabase image registers the NVIDIA CUDA apt repo, and when thecommon-utilsdevcontainer feature runsapt-get update, it hits that repo during a mirror sync — resulting in a hash mismatch error and exit code 100.The CUDA toolkit is already bundled in the base image; the apt repo serves no purpose after the Dockerfile
RUNsteps complete.Changes
.devcontainer/Dockerfile: Add a finalRUNstep that removes NVIDIA CUDA apt source lists and cleans the apt cache, so subsequentapt-get updatecalls by devcontainer features only hit stable Ubuntu mirrors: